<template>
    <LodingCom />
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </router-view>
</template>

<script setup>
import LodingCom from '@src/components/loading'
//name名是默认赋值的文件名, 如果想要自定义名字，defineOptions(vue3.2+) defineOptions不用显示导入
defineOptions({
  name: 'APP'
})
</script>
